<#macro showPage page> 
		<#assign numPages = page.totalPage>
		<#assign thisPage = page.currentPage>        
		<#if (numPages > 1 ) >
			<#if (thisPage >1) >
				
				<span class="start"><a href="javascript:void(0)" onclick='javascript:changePage(1);return false;'>首页</a></span>        	
				<#assign previous = page.currentPage>
				<#if page.getHasPrePage()>
					<#assign previous = page.currentPage -1 >
				</#if>
				<span class="previous"><a href="javascript:void(0)" onclick='javascript:changePage(${previous});return false;'>前一页</a></span>
			<#else>
				<span class="start">首页</span>&nbsp;
				<span class="previous">前一页</span>
			</#if>
			(第${thisPage}页 / 共${numPages}页)
			<#if (thisPage == numPages) >
				<span class="next">下一页</span>&nbsp;
				<span class="end">尾页</span>
			<#else>
				<#assign next = page.currentPage>
				<#if page.getHasNextPage()>
					<#assign next = page.currentPage + 1 >
				</#if>
				<span class="next"><a href="javascript:void(0)" onclick='javascript:changePage(${next});return false;'>下一页</a></span>
				<span class="end"><a href="javascript:void(0)" onclick='javascript:changePage(${numPages});return false;'>尾页</a></span> 
			</#if>
			
			<#assign totalRecord = page.totalRecords>
	   		跳转
	   		<input id="currentPage" name="currentPage" class="input_mini" type="text" size="2" onkeypress="if(event.keyCode==13){javascript:var cpage=1;var currentPage=this;if(currentPage.value<=${numPages}&&currentPage.value.indexOf('.')==-1&& currentPage.value>0){cpage=currentPage.value}else{alert('页面超过范围！');return false;}changePage(cpage);return false;}"/>
	   		页
	   		
	   </#if>
</#macro>